package com.corgi.grpc.client;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @title: GrpcClientController
 * @description:
 * @author: dengmiao
 * @create: 2019-10-08 17:44
 **/
@RestController
public class GrpcClientController {

	@Autowired
	private GrpcClientService grpcClientService;

	@RequestMapping("/test")
	public String printMessage(String name) {
		return grpcClientService.sendMessage(name);
	}
}
